Skip to content

Jobs dashboard#126

Open
yogiwoo wants to merge 5 commits intoalvarotorrestx:devfrom
yogiwoo:jobdashboard_yogiwoo
Open

Jobs dashboard#126
yogiwoo wants to merge 5 commits intoalvarotorrestx:devfrom
yogiwoo:jobdashboard_yogiwoo

Conversation

@yogiwoo
Copy link

@yogiwoo yogiwoo commented May 17, 2025

i have added a basic layout similar to linked in,
am new to frontend and react so its not going to be same

@alvarotorrestx
Copy link
Owner

Reference to #98

Copy link
Owner

@alvarotorrestx alvarotorrestx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THIS IS AWESOME!! 🎇

This is super great! It's got a great foundation for desktop view! Now it just needs to be responsive for smaller screens (mobile and tablets). Think you can continue adapting? 😄

image

@alvarotorrestx
Copy link
Owner

@yogiwoo Hey there, I hadn't heard back from you from the Issue page on this PR. Were you going to continue to integrate more into this task?

@yogiwoo
Copy link
Author

yogiwoo commented Jun 8, 2025

yes will do it
currenlty i am stuck on my current job's task
also am trying hard to switch from my current job but not able to find another better job that's why i am quit busy

@alvarotorrestx
Copy link
Owner

Ah... I completely understand you... I'm on the same path combined with school work.

If you'd like I can complete this task since you've implemented a lot of it and I'll adapt it. Would that be ok?

When you have more time open up you can throw in some more time with other tasks? @yogiwoo

@yogiwoo
Copy link
Author

yogiwoo commented Jun 11, 2025 via email

@yogiwoo
Copy link
Author

yogiwoo commented Jun 17, 2025 via email

Comment on lines +26 to +38
const [isMobile, setIsMobile] = React.useState(window.innerWidth < 768);
const [back,setBack] = useState(false)
React.useEffect(() => {
const handleResize = () => setIsMobile(window.innerWidth<768)
window.addEventListener("resize",handleResize);
handleResize();
if(isMobile) setBack(false)
return ()=>window.addEventListener("resize",handleResize)

})
const BackButton=()=>{
return <button className="p-2 w-40 bg-primary text-white rounded-full">BACK</button>
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The desired effect to resize and return would be using Tailwind CSS. useEffect in this case could cause performance issues and css is optimized already for responsiveness.

Think you can redo the resizing and button in tailwind? Let me know.

Comment on lines +62 to +68
<div className="jobdesc bg-base-100 w-[100%] col-span-12 rounded-md shadow-md p-4 overflow-y-auto h-[720px]">
<button
className="mb-4 text-blue-500 underline"
onClick={() => setSelectedJob(null)}
>
← Back to Job List
</button>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrow and text can be centered for better UI.

Think you can add a react-icon to it and match color scheme?

Comment on lines +1 to +42
// import { use,useEffect } from "react";
// import JobDescriptions from "./JobDescriptions";
// import JobList from "./JobList";
// import React from "react";
// const JobsMain = () => {
// //const isMobile = window.innerWidth < 768;
// const [isMobile, setIsMobile] = React.useState(window.innerWidth < 768);
// useEffect(() => {
// const handleResize = () => {
// setIsMobile(window.innerWidth < 768);
// }
// window.addEventListener('resize', handleResize);
// handleResize();
// return () => window.removeEventListener('resize', handleResize) },
// []);

// return (
// <div className="w-[95%] mx-auto mt-5">
// {/* Single grid container with 12 columns */}

// {/* 4 left and 8 at right in */}
// <div className="grid grid-cols-12 gap-1">
// {isMobile?
// (<div className="joblist bg-base-100 w-[100%] mx-auto col-span-12 rounded-md shadow-md p-4 overflow-y-auto h-[720px]">
// <JobList/>
// </div>
// )
// :
// (<><div className="joblist bg-base-100 w-[100%] mx-auto col-span-4 rounded-md shadow-md p-4 overflow-y-auto h-[720px]">
// <JobList/>
// </div>
// <div className=" bg-base-100 w-[100%] mx-auto rounded-md shadow-md jobdesc col-span-8 p-4 overflow-y-auto h-[720px]">
// {/* job title ,company icon ,job location , description , about us , responsibility , requiremnet , offers , location, message from hr */}
// <JobDescriptions/>
// </div></>)
// }
// </div>
// </div>
// );
// };

// export default JobsMain;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the extra comments if not needed anymore.

@yogiwoo
Copy link
Author

yogiwoo commented Jun 23, 2025 via email

@alvarotorrestx
Copy link
Owner

Of course, TailwindCSS offers a range of built in media query resizings. Instead of using a useEffect, it may be ideal to do something for example:

<button className="flex flex-wrap lg:hidden">This is a button</button>

This allows the button to show and once it reaches "lg" screen size, it will hide.

You can find more here:
https://tailwindcss.com/docs/hover-focus-and-other-states#media-and-feature-queries @yogiwoo

@yogiwoo
Copy link
Author

yogiwoo commented Jun 24, 2025 via email

@alvarotorrestx
Copy link
Owner

Awesome, thanks so much. Keep me posted! @yogiwoo 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants